package com.jiazhong.shuzu;

public class Test02 {
    public static void main(String[] args) {
        int a[]=new int[100];
        int num=0;
        for (int i=0;i<a.length;i++){
            a[i]= (int) (Math.random()*(10)+0);
        }
        for (int i=0;i<a.length;i++){
            System.out.printf(" "+a[i]);
            if (i%10==9)
                System.out.println("");
        }
        System.out.println();
        for (int i=0;i<=9;i++){
            for (int j=0;j<a.length;j++){
                if (i==a[j]){
                    num++;
                }
            }
            System.out.println("生成数中"+i+"的个数有"+num+"个");
            num=0;
        }
    }
}
